Optimal. Leaf size=63 \[ \frac {2 a (A b-a B)}{3 b^3 (a+b x)^{3/2}}-\frac {2 (A b-2 a B)}{b^3 \sqrt {a+b x}}+\frac {2 B \sqrt {a+b x}}{b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {78}
\begin {gather*} -\frac {2 (A b-2 a B)}{b^3 \sqrt {a+b x}}+\frac {2 a (A b-a B)}{3 b^3 (a+b x)^{3/2}}+\frac {2 B \sqrt {a+b x}}{b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int \frac {x (A+B x)}{(a+b x)^{5/2}} \, dx &=\int \left (\frac {a (-A b+a B)}{b^2 (a+b x)^{5/2}}+\frac {A b-2 a B}{b^2 (a+b x)^{3/2}}+\frac {B}{b^2 \sqrt {a+b x}}\right ) \, dx\\ &=\frac {2 a (A b-a B)}{3 b^3 (a+b x)^{3/2}}-\frac {2 (A b-2 a B)}{b^3 \sqrt {a+b x}}+\frac {2 B \sqrt {a+b x}}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 46, normalized size = 0.73 \begin {gather*} \frac {16 a^2 B-4 a b (A-6 B x)+6 b^2 x (-A+B x)}{3 b^3 (a+b x)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 51, normalized size = 0.81
method | result | size |
gosper | \(-\frac {2 \left (-3 b^{2} B \,x^{2}+3 b^{2} A x -12 a b B x +2 a b A -8 a^{2} B \right )}{3 \left (b x +a \right )^{\frac {3}{2}} b^{3}}\) | \(47\) |
trager | \(-\frac {2 \left (-3 b^{2} B \,x^{2}+3 b^{2} A x -12 a b B x +2 a b A -8 a^{2} B \right )}{3 \left (b x +a \right )^{\frac {3}{2}} b^{3}}\) | \(47\) |
derivativedivides | \(\frac {2 B \sqrt {b x +a}-\frac {2 \left (A b -2 B a \right )}{\sqrt {b x +a}}+\frac {2 a \left (A b -B a \right )}{3 \left (b x +a \right )^{\frac {3}{2}}}}{b^{3}}\) | \(51\) |
default | \(\frac {2 B \sqrt {b x +a}-\frac {2 \left (A b -2 B a \right )}{\sqrt {b x +a}}+\frac {2 a \left (A b -B a \right )}{3 \left (b x +a \right )^{\frac {3}{2}}}}{b^{3}}\) | \(51\) |
risch | \(\frac {2 B \sqrt {b x +a}}{b^{3}}-\frac {2 \left (3 b^{2} A x -6 a b B x +2 a b A -5 a^{2} B \right )}{3 b^{3} \left (b x +a \right )^{\frac {3}{2}}}\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 58, normalized size = 0.92 \begin {gather*} \frac {2 \, {\left (\frac {3 \, \sqrt {b x + a} B}{b} - \frac {B a^{2} - A a b - 3 \, {\left (2 \, B a - A b\right )} {\left (b x + a\right )}}{{\left (b x + a\right )}^{\frac {3}{2}} b}\right )}}{3 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.97, size = 69, normalized size = 1.10 \begin {gather*} \frac {2 \, {\left (3 \, B b^{2} x^{2} + 8 \, B a^{2} - 2 \, A a b + 3 \, {\left (4 \, B a b - A b^{2}\right )} x\right )} \sqrt {b x + a}}{3 \, {\left (b^{5} x^{2} + 2 \, a b^{4} x + a^{2} b^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 211 vs.
\(2 (60) = 120\).
time = 0.40, size = 211, normalized size = 3.35 \begin {gather*} \begin {cases} - \frac {4 A a b}{3 a b^{3} \sqrt {a + b x} + 3 b^{4} x \sqrt {a + b x}} - \frac {6 A b^{2} x}{3 a b^{3} \sqrt {a + b x} + 3 b^{4} x \sqrt {a + b x}} + \frac {16 B a^{2}}{3 a b^{3} \sqrt {a + b x} + 3 b^{4} x \sqrt {a + b x}} + \frac {24 B a b x}{3 a b^{3} \sqrt {a + b x} + 3 b^{4} x \sqrt {a + b x}} + \frac {6 B b^{2} x^{2}}{3 a b^{3} \sqrt {a + b x} + 3 b^{4} x \sqrt {a + b x}} & \text {for}\: b \neq 0 \\\frac {\frac {A x^{2}}{2} + \frac {B x^{3}}{3}}{a^{\frac {5}{2}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.94, size = 55, normalized size = 0.87 \begin {gather*} \frac {2 \, \sqrt {b x + a} B}{b^{3}} + \frac {2 \, {\left (6 \, {\left (b x + a\right )} B a - B a^{2} - 3 \, {\left (b x + a\right )} A b + A a b\right )}}{3 \, {\left (b x + a\right )}^{\frac {3}{2}} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.37, size = 52, normalized size = 0.83 \begin {gather*} \frac {6\,B\,{\left (a+b\,x\right )}^2-2\,B\,a^2+2\,A\,a\,b-6\,A\,b\,\left (a+b\,x\right )+12\,B\,a\,\left (a+b\,x\right )}{3\,b^3\,{\left (a+b\,x\right )}^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________